﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FunMazeEngine
{
    [Serializable]
    public class GamePlayer : MarshalByRefObject
    {

        public string Name { get; set; }

        public GamePlayer(string name)
        {
            Name = name;
            IsPrimaryHost = false;
            IsBackUpHost = false;
        }

        public int TotalCollectedTreasure { get; set; }

        public void AddTreasure(int numOfTreasure)
        {
            TotalCollectedTreasure += numOfTreasure;
        }

        public int Location { get; set; }

        public string Move { get ; set ; }

        public string PlayerIPAddress { get; set; }

        public bool IsBackUpHost { get; set; }

        public bool IsPrimaryHost { get; set; }

        public bool IsAlive { get; set; }

    }
}
